#include <iostream>
using namespace std;
class Point
{
public:
    Point()
    {
        x = 10, y = 10;
    }
    Point(int a, int b)
    {
        x = a, y = b;
    }
    double x, y;
};
class Circle
{
private:
    Point O;
    double R;

public:
    Circle(Point o, double r)
    {
        O = o, R = r;
    }
    void setR(int a)
    {
        R = a;
    }
    void setO(Point p)
    {
        O = p;
    }
    auto pointPosition(Point p)
    {
        if ((p.x - O.x) * (p.x - O.x) + (p.y - O.y) * (p.y - O.y) == R * R)
            return "on";
        else if ((p.x - O.x) * (p.x - O.x) + (p.y - O.y) * (p.y - O.y) > R * R)
            return "out";
        else
            return "in";
    }
};
int main()
{
    Point O(8, 0);
    Point p(8, 9);

    Circle c(O, 8);
    cout << c.pointPosition(p) << endl;
    return 0;
}
